#define _CRT_SECURE_NO_WARNINGS 1
#include "date.h"

void test1() {
	Date o1(2022, 10, 26);
	Date o2 = o1;
	Date o3, o4;
	o3 = o4 = o2;
	cout << o3 << endl;
	cout << o4 << endl;
	cout << o2 << endl;
	cout << o1 << endl;
	o1 += 1000;
	cout << o1 << endl;
}

void test2() {
	Date o1(2022, 10, 26);
	Date o2;
	o2 = o1 + 100;
	cout << o1 << endl;
	cout << o2 << endl;
}

void test3() {
	Date o1(2022, 10, 26);
	Date o2(1999, 11, 30);
	cout << o2 - o1 << endl;
}

void test4() {
	Date o1(2022, 10, 26);
	Date o2;
	o1 -= 100;
	o2 = o1 - 100;
	cout << o1 << endl;
	cout << o2 << endl;
}

int main() {
	test4();
	return 0;
}